<?php
/**
 * coreRouterParamFilter
 *
 * 파라미터 처리 - XSS 필터링 모드
 *
 * @package router
 * @author  Platform Team
 */

class coreRouterParamFilter extends coreRouterParamAbstract
{
    public function parse()
    {
        $this->setParamSsl();

        $this->setParamGetPost();

        $this->xssFilter();

        $this->mergeGetPost();

        $this->setParamFiles();

        $this->mergeGetPostFiles();
    }

    private function xssFilter()
    {
        $Xss = utilXss::getInstance(array(), false);

        $Xss->defaultFilter($this->aParam[self::KEY_GET]);
        $Xss->defaultFilter($this->aParam[self::KEY_POST]);
        $Xss->defaultFilter($this->aParam[self::KEY_SSL]);
    }
}
